package com.quanyan.place.entity.apireq;

import com.quanyan.place.entity.vo.PlaceCombinedUnitVo;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Created by yuanxuebing on 16/11/14.
 */
public class ReqPlaceCreateCombinedUnit implements Serializable {
    private Integer id;

    @NotNull
    private Integer placeId;

    private String name;

    private String comment;

    @NotNull
    private Byte categoryId;

    private String placeUnitType;

    private String placeUnitTexture;

    private String lightType;

    private String fieldScale;

    @NotEmpty
    List<PlaceCombinedUnitVo> subUnits;     // PlaceCombinedUnitVo 至少需要id, isCombinedUnit, fieldScale, baseUnitIds 字段

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPlaceId() {
        return placeId;
    }

    public void setPlaceId(Integer placeId) {
        this.placeId = placeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Byte getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Byte categoryId) {
        this.categoryId = categoryId;
    }

    public String getPlaceUnitType() {
        return placeUnitType;
    }

    public void setPlaceUnitType(String placeUnitType) {
        this.placeUnitType = placeUnitType;
    }

    public String getPlaceUnitTexture() {
        return placeUnitTexture;
    }

    public void setPlaceUnitTexture(String placeUnitTexture) {
        this.placeUnitTexture = placeUnitTexture;
    }

    public String getLightType() {
        return lightType;
    }

    public void setLightType(String lightType) {
        this.lightType = lightType;
    }

    public String getFieldScale() {
        return fieldScale;
    }

    public void setFieldScale(String fieldScale) {
        this.fieldScale = fieldScale;
    }

    public List<PlaceCombinedUnitVo> getSubUnits() {
        return subUnits;
    }

    public void setSubUnits(List<PlaceCombinedUnitVo> subUnits) {
        this.subUnits = subUnits;
    }
}

